package com.jinshan.edu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jinshan.edu.entity.EduCourse;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jinshan.request.CourseInfoVO;
import com.jinshan.response.EduCourseInfoVO;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author Jinshan
 * @since 2020-06-26
 */
public interface EduCourseService extends IService<EduCourse> {

    boolean saveCourse(CourseInfoVO courseInfoVO);

    CourseInfoVO getCourseById(String courseId);

    List<EduCourse> getAllCourse();

    void getCourseByCondition(Page<EduCourse> page, String title, String status);

    boolean updateCourse(CourseInfoVO courseInfoVO);

    EduCourseInfoVO getCourseInfoById(String courseId);

    void updateCourseStatus(String courseId);

    boolean deleteCourseById(String courseId);
}
